<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>平台管理-部门管理</title>
    <link href="${path}/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path}/js/common.js" type="text/javascript"></script>
    <script src="${path}/common/plugins/bootstrap/js/bootstrap.js"></script>
    <script src="${path}/common/plugins/layer/layer.js"></script>
    <style>
        html,body {margin:0;padding:0;}
        body{background:#f1f1f1;height:100%;}
    </style>
</head>
<body>
<div class="content">
    <div class="content_detail">
        <div class="control-title">
            <i class="user_manage content_current"></i><span>${depName}子部门管理</span>
            <div class="spanbtn">
                <button class="press_btn1 add_btn"><i class="add top_current"></i>添加</button>
                <button class="press_btn2 del_select_btn"><i class="del top_current"></i>删除</button>
            </div>
        </div>
        <div class="content_condition oneContent">
            <div class="last_group">
                <div class="span3">
                    <label class="control-label" >部门名:</label>
                    <div class="controls">
                        <input type="text" id="depName" />
                        <input type="hidden" id="depId" value=${depId} />
                    </div>
                </div>
                <div class="spanbtn">
                    <button class="press_btn1 sel_btn"><i class="search top_current"></i>搜索</button>
                    <button class="press_btn2 reset_btn"><i class="reset top_current"></i>重置</button>
                </div>
            </div>
        </div>
        <div class="content_table">
            <table class="table table-striped table-bordered table-hover table-ellipsis details">
                <thead>
                <tr>
                    <th class="checkwidth"><input type="checkbox" class="checkAll" title="全选"/></th>
                    <%--<th>ID</th>--%>
                    <th>部门编号</th>
                    <th>隶属公司</th>
                    <th>部门名</th>
                    <th>部门状态</th>
                    <th>备注</th>
                    <th class="operation">操作</th>
                </tr>
                </thead>
                 <tbody id="pageTable">
				        <c:forEach items="${pageList}" var="item" >
                            <tr depId="${item.depId}">
                                <td class="checkNot"><input type="checkbox" class="checkinput" name="checkradio"/></td>
                                <td>${item.depId}</td>
                                <td>${item.depCode}</td>
                                <c:forEach items="${companyList}" var="cmpList" >
                                	<c:if test="${item.cmpId == cmpList.cmpId }">
                                		<td>${cmpList.cmpName}</td>
                                	</c:if>
                                </c:forEach>
                                <td>${item.depName}</td>
                                <td>${item.state == "9ba" ? "启用" : "关闭"}</td>
                                <td>${item.remark}</td>
                                <td><i class="Edit content_current edit_btn" title="编辑"></i><i class="Del content_current delete_btn" title="删除"></i></td>
                            </tr>
					    </c:forEach>
                  </tbody>
            </table>
            <!-- 引入-->
            <%@ include file="/common/jsp/footer_pager.jsp"%>
        </div>
    </div>
</div>
</body>
<script src="dep_child_management.js"></script>
</html>
